2027 Method
Changes 0
M

BeamSystem.Create

Description:
Creates a new BeamSystem with specified profile curves.
public static BeamSystem Create(
	Document document,
	IList<Curve> profile,
	SketchPlane sketchPlane,
	XYZ direction,
	bool is3d
)
  • document
    The document in which the new BeamSystem is created.
  • IList<Curve>
    profile
    The profile of the BeamSystem.
  • sketchPlane
    The work-plane for the BeamSystem.
  • direction
    The direction is the direction of the BeamSystem.
  • Boolean
    is3d
    Whether the BeamSystem is 3D. If the BeamSystem is 3D, the sketchPlane must be a level, otherwise an exception will be thrown.
Return Value BeamSystem If successful, a new BeamSystem object will be returned.
  • SketchPlane is not valid for BeamSystem creation. -or- The input profile contains at least one helical curve and is not supported for this operation. -or- The profile curves must be in the sketch plane.
  • A non-optional argument was null
  • The BeamSystem is 3D, but the SketchPlane is not a level.
  • The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
  • The document has no open transaction.